/*
 * Created on 02.02.2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.entities.components;

import java.util.Date;

import ro.qi.framework.sys.entities.exception.ComponentException;

/**
 * @author vlad lepadatu 
 */
public class BirthdateComponent extends DateComponent {

	/**
	 * @see ro.qi.framework.entities.components.DateComponent#setValue(java.lang.Object)
	 */
	public void setValue(Object _value) throws ComponentException {
		if( _value != null )
			super.setValue(_value);
		else
			super.setValue(new Date());
	}

	/**
	 * @see ro.qi.framework.entities.components.DateComponent#getValue()
	 */
	/*
	public Object getValue() {
		SimpleDateFormat format = new SimpleDateFormat("d MMM yyyy");
		return format.format(super.getValue());
	}
	*/
}
